package com.chaodev.base.model.wenjuan;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * vcbase
 *
 * @author 95634
 * @描述
 * @date 2023/5/23 15:35
 **/
public class PaperFinsh implements Serializable {
    private static final long serialVersionUID = -4778726324863775809L;
    @ApiModelProperty(value = "自增ID")
    private Integer id;

    @ApiModelProperty(value = "问卷ID")
    private Integer paperId;

    @ApiModelProperty(value = "问题ID")
    private Integer pqId;

    @ApiModelProperty(value = "答案ID")
    private Integer answerId;

    @ApiModelProperty(value = "答案描述")
    private String answer;

    @ApiModelProperty(value = "状态:0: 无效 1：有效")
    private Integer state;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh",timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String areaCode;

    private String userName;
    private String phone;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getPaperId() {
        return paperId;
    }

    public void setPaperId(Integer paperId) {
        this.paperId = paperId;
    }
    public Integer getPqId() {
        return pqId;
    }

    public void setPqId(Integer pqId) {
        this.pqId = pqId;
    }
    public Integer getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Integer answerId) {
        this.answerId = answerId;
    }
    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    @Override
    public String toString() {
        return "TPaperFinsh{" +
                "id=" + id +
                ", paperId=" + paperId +
                ", pqId=" + pqId +
                ", answerId=" + answerId +
                ", answer=" + answer +
                ", state=" + state +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", areaCode=" + areaCode +
                "}";
    }
}
